﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using NHibernate.Mapping.ByCode.Conformist;
using NHibernate.Mapping.ByCode;

namespace LaughTest.Domain
{
    public class BookMapping : ClassMapping<Book>
    {
        public BookMapping()
        {
            Id(p => p.Id, m => m.Generator(Generators.Identity));
            
            Property(p => p.Name);
            Property(p => p.Age);

            Table("LA_BOOK");
        }
    }
}
